/**
 * 分页列表
 */

import base from "./Base";
import Vue from 'vue';
import { AwesomePagination } from "awesome-element-ui";
Vue.use(AwesomePagination);

export default {
    mixins: [base],
    data() {
        return {
            page: { maxResultCount: 10, skipCount: 0 },
            filter: {},
            // 分页数据查询中
            querying: false,
            selected: [],
        }
    },
    methods: {
        // element ui 表格选择改变事件 需手动绑定 @selection-change="selectionChange"
        selectionChange(vals) {
            this.selected = vals;
        }
    },
    computed: {
        selectedIds() {
            return this.selected.map(t => { return t.id });
        }
    }
}